#import "GlowVirtuousCell.h"


@implementation GlowVirtuousCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setYieldVelvetInstinct:(GlowVirtuousModel *)yieldVelvetInstinct {
	_yieldVelvetInstinct = yieldVelvetInstinct;

	//: 配置cell的UI

	if (yieldVelvetInstinct.illuminateUnity.count > 0) {
		[self.mergeXylophoneLanternImageView sd_setImageWithURL:[NSURL URLWithString:yieldVelvetInstinct.illuminateUnity[0]] placeholderImage:nil];
	}

	self.pictureLabel.text = yieldVelvetInstinct.terrain ? @"YES" : @"NO";

	self.delightfulLabel.text = yieldVelvetInstinct.enchantingBreezeNostalgia ? @"YES" : @"NO";



}
- (UILabel *)laughterArchivePonderLabel {
	if (!_laughterArchivePonderLabel) {
	
        _laughterArchivePonderLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        _laughterArchivePonderLabel.frame = CGRectMake(30, 19, 87, 79);
        _laughterArchivePonderLabel.text = @"label_0";
        _laughterArchivePonderLabel.font = [UIFont systemFontOfSize:12 weight:UIFontWeightBold];
        _laughterArchivePonderLabel.textColor = [UIColor colorWithRed:205/255.0 green:181/255.0 blue:66/255.0 alpha:0.8];
        _laughterArchivePonderLabel.textAlignment = NSTextAlignmentRight;
        //: 不用理会的骚操作 = _laughterArchivePonderLabel.numberOfLines = 1;
        NSInteger nirvana = 1;
        if (nirvana>11 && nirvana < 7757) {
	        nirvana = 44;
        }
        _laughterArchivePonderLabel.numberOfLines = nirvana;
	}
	return _laughterArchivePonderLabel;
}

- (UITextField *)imprintDabbleTextField {
	if (!_imprintDabbleTextField) {
	
        _imprintDabbleTextField = [[UITextField alloc] init];
	}
	return _imprintDabbleTextField;
}

//: charismaLibertyEclipse 的点击事件
- (void)action_3 {}

- (UIView *)flourishView {
	if (!_flourishView) {
	
        _flourishView = [UIView new];
        _flourishView.frame = CGRectMake(29, 18, 32, 36);
	}
	return _flourishView;
}

- (UIView *)apprehensionView {
	if (!_apprehensionView) {
	
        _apprehensionView = [[UIView alloc] initWithFrame:CGRectZero];
	}
	return _apprehensionView;
}

- (UIImageView *)glowEssenceImageView {
	if (!_glowEssenceImageView) {
	
        _glowEssenceImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        _glowEssenceImageView.contentMode = UIViewContentModeScaleAspectFill;
        _glowEssenceImageView.clipsToBounds = YES;
        _glowEssenceImageView.layer.cornerRadius = 3;
        _glowEssenceImageView.layer.masksToBounds = YES;
        _glowEssenceImageView.frame = CGRectMake(39, 16, 143, 69);
        UIImage *kaleidoscopeMotionMarble = [UIImage imageNamed:@"images/image_8.png"];
        if (kaleidoscopeMotionMarble) {
	        _glowEssenceImageView.image = kaleidoscopeMotionMarble;
        }
	}
	return _glowEssenceImageView;
}

- (void)grumpyInitUI {
	//: 描述_0
	[self.contentView addSubview:self.laughterArchivePonderLabel];


    //: 描述_1
    UIImageView *melodicUnveilMelody = [[UIImageView alloc] init];
    melodicUnveilMelody.contentMode = UIViewContentModeScaleAspectFill;
    melodicUnveilMelody.clipsToBounds = YES;
    melodicUnveilMelody.layer.cornerRadius = 19;
    melodicUnveilMelody.layer.masksToBounds = YES;
    UIImage *delightful = [UIImage imageNamed:@"images/image_1.png"];
    if (delightful) {
	    melodicUnveilMelody.image = delightful;
    }
    self.mergeXylophoneLanternImageView = melodicUnveilMelody;
    [self.contentView addSubview:melodicUnveilMelody];
	[self.mergeXylophoneLanternImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(191);
		make.height.mas_equalTo(47);
		make.bottom.equalTo(@(14));
	}];

	//: 描述_2
	[self.contentView addSubview:self.imprintDabbleTextField];
	[self.imprintDabbleTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(62);
		make.height.mas_equalTo(99);
		make.top.equalTo(@(19));
		make.bottom.equalTo(@(24));
	}];


    //: 描述_3
    UIButton *charismaLibertyEclipse = [[UIButton alloc] initWithFrame:CGRectZero];
    charismaLibertyEclipse.size = CGSizeMake(62, 126);
    charismaLibertyEclipse.left = 49;
    charismaLibertyEclipse.top = 20;
    UIImage *rebirthKeepsake = [UIImage imageNamed:@"images/icon_3.png"];
    if (rebirthKeepsake) {
	    [charismaLibertyEclipse setImage:rebirthKeepsake forState:UIControlStateNormal];
    }
    [charismaLibertyEclipse setTitle:@"button_3" forState:UIControlStateNormal];
    [charismaLibertyEclipse setTitle:@"button_selected_3" forState:UIControlStateSelected];
    [charismaLibertyEclipse setTitleColor:[UIColor colorWithRed:57/255.0 green:147/255.0 blue:88/255.0 alpha:0.6] forState:UIControlStateNormal];
    [charismaLibertyEclipse setTitleColor:[UIColor colorWithRed:176/255.0 green:37/255.0 blue:125/255.0 alpha:0.8] forState:UIControlStateSelected];
    [charismaLibertyEclipse addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
    self.hammerInspireBtn = charismaLibertyEclipse;
    [self.contentView addSubview:charismaLibertyEclipse];

	//: 描述_4
	[self.contentView addSubview:self.flourishView];


    //: 描述_5
    self.pictureLabel = [UILabel new];
    self.pictureLabel.text = @"label_5";
    self.pictureLabel.font = [UIFont systemFontOfSize:12 weight:UIFontWeightBold];
    self.pictureLabel.textColor = [UIColor colorWithRed:210/255.0 green:92/255.0 blue:241/255.0 alpha:1.0];
    self.pictureLabel.textAlignment = NSTextAlignmentRight;
    self.pictureLabel.numberOfLines = 3;
    [self.contentView addSubview:self.pictureLabel];
	[self.pictureLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(185);
		make.height.mas_equalTo(71);
	}];

	//: 描述_6
	[self.contentView addSubview:self.apprehensionView];
	[self.apprehensionView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(72);
		make.height.mas_equalTo(62);
	}];


    //: 描述_7
    self.delightfulLabel = [UILabel new];
    self.delightfulLabel.size = CGSizeMake(101, 127);
    self.delightfulLabel.left = 40;
    self.delightfulLabel.top = 18;
    self.delightfulLabel.text = @"label_7";
    self.delightfulLabel.font = [UIFont systemFontOfSize:20 weight:UIFontWeightBold];
    self.delightfulLabel.textColor = [UIColor colorWithRed:148/255.0 green:82/255.0 blue:29/255.0 alpha:0.7];
    self.delightfulLabel.textAlignment = NSTextAlignmentRight;
    self.delightfulLabel.numberOfLines = 3;
    [self.contentView addSubview:self.delightfulLabel];

	//: 描述_8
	[self.contentView addSubview:self.glowEssenceImageView];
}


@end
